import {get, post, save, deletep, put, upload} from './http'

/**
 * 新增安全目标接口
 * @param {} p
 */
export const addSafetyAimInfo_Url = p => save('/quality/safety/safetyAim/addSafetyAimInfo', p);

/**
 * 删除安全目标接口
 * @param {} p
 */
export const deleteSafetyAimInfo_Url = p => deletep('/quality/safety/safetyAim/deleteSafetyAimInfo', p);

/**
 * 修改安全目标接口
 * @param {} p
 */
export const updateSafetyAimInfo_Url = p => put('/quality/safety/safetyAim/updateSafetyAimInfo', p);

/**
 * 新增安全制度接口
 * @param {} p
 */
export const addSafetySystemInfo_Url = p => save('/quality/safety/safetySystem/addSafetySystemInfo', p);

/**
 * 删除安全制度接口
 * @param {} p
 */
export const deleteSafetySystemInfo_Url = p => deletep('/quality/safety/safetySystem/deleteSafetySystemInfo', p);

/**
 * 更新安全制度接口
 * @param {} p
 */
export const updateSafetySystemInfo_Url = p => put('/quality/safety/safetySystem/updateSafetySystemInfo', p);
/**
 * 新增安全会议接口
 * @param {} p
 */
export const addSafetyConferenceInfo_Url = p => save('/quality/safety/safetyMeeting/addSafetyMeetingInfo', p);

/**
 * 删除安全会议接口
 * @param {} p
 */
export const deleteSafetyConferenceInfo_Url = p => deletep('/quality/safety/safetyMeeting/deleteSafetyMeetingInfo', p);

/**
 * 更新安全会议接口
 * @param {} p
 */
export const updateSafetyConferenceInfo_Url = p => put('/quality/safety/safetyMeeting/updateSafetyMeetingInfo', p);

/**
 * 新增安全组织机构（主表）
 * @param {} p
 */
export const addSafetySecurityeosInfo_Url = p => save('/quality/safety/safetyOrganization/addSafetyOrganizationInfo', p);

/**
 * 删除安全组织机构（主表）
 * @param {} p
 */
export const deleteSafetySecurityeosInfo_Url = p => deletep('/quality/safety/safetyOrganization/deleteSafetyOrganizationInfo', p);

/**
 * 更新安全组织机构（主表）
 * @param {} p
 */
export const updateSafetySecurityeosInfo_Url = p => put('/quality/safety/safetyOrganization/updateSafetyOrganizationInfo', p);

/**
 * 新增风险管控 主表
 *
 * @param p
 * @returns {*|Promise<unknown>}
 */
export const addSafetyControlInfo = p => save('/quality/safety/safetyControl/addSafetyControlInfo', p);

/**
 * 更新风险管控主表
 *
 * @param p
 * @returns {*|Promise<unknown>}
 */
export const updateSafetyControlInfo = p => put('/quality/safety/safetyControl/updateSafetyControlInfo', p);

/**
 * 新增风险管控 从表
 *
 * @param p
 * @returns {*|Promise<unknown>}
 */
export const addSafetyControlItemInfo = p => save('/quality/safety/safetyControl/addSafetyControlItemInfo', p);

/**
 * 更新风险管控从表
 *
 * @param p
 * @returns {*|Promise<unknown>}
 */
export const updateSafetyControlItemInfo = p => put('/quality/safety/safetyControl/updateSafetyControlItemInfo', p);

/**
 * 删除风险管控 - 主表
 *
 * @param p
 * @returns {*|Promise<unknown>}
 */
export const deleteSafetyControlInfo = p => deletep('/quality/safety/safetyControl/deleteSafetyControlInfo', p);

/**
 * 删除风险管控 - 从表
 *
 * @param p
 * @returns {*|Promise<unknown>}
 */
export const deleteSafetyControlItemInfo = p => deletep('/quality/safety/safetyControl/deleteSafetyControlItemInfo', p);

/**
 * 更新职业健康管理接口
 *
 * @param p
 * @returns {*|Promise<unknown>}
 */
export const updateSafetyOhsasInfo = p => put('/quality/safety/safetyOhsas/updateSafetyOhsasInfo', p);

/**
 * 删除职业健康管理接口
 *
 * @param p
 * @returns {*|Promise<unknown>}
 */
export const deleteSafetyOhsasInfo = p => deletep('/quality/safety/safetyOhsas/deleteSafetyOhsasInfo', p);

/**
 * 新增职业健康管理接口
 *
 * @param p
 * @returns {*|Promise<unknown>}
 */
export const addSafetyOhsasInfo = p => save('/quality/safety/safetyOhsas/addSafetyOhsasInfo', p);

/**
 * 新增安全组织机构（从表）
 * @param {} p
 */
export const addSafetySecurityItemeosInfo_Url = p => save('/quality/safety/safetyOrganization/addSafetyOrganizationItemInfo', p);

/**
 * 删除安全组织机构（从表）
 * @param {} p
 */
export const deleteSafetySecurityItemeosInfo_Url = p => deletep('/quality/safety/safetyOrganization/deleteSafetyOrganizationItemInfo', p);

/**
 * 更新安全组织（从表）
 * @param {} p
 */
export const updateSafetySecurityItemeosInfo_Url = p => put('/quality/safety/safetyOrganization/updateSafetyOrganizationItemInfo', p);


/**
 * 新增教育培训接口
 * @param {} p
 */
export const addSafetyEducationInfo_Url = p => save('/quality/safety/safetyEducation/addSafetyEducationInfo', p);

/**
 * 删除教育培训接口
 * @param {} p
 */
export const deleteSafetyEducationInfo_Url = p => deletep('/quality/safety/safetyEducation/deleteSafetyEducationInfo', p);

/**
 * 更新教育培训接口
 * @param {} p
 */
export const updateSafetyEducationInfo_Url = p => put('/quality/safety/safetyEducation/updateSafetyEducationInfo', p);

/**
 * 新增教育培训从表接口
 * @param {} p
 */
export const addSafetyEducationItemInfo_Url = p => save('/quality/safety/safetyEducation/addSafetyEducationItemInfo', p);

/**
 * 删除教育培训从表接口
 * @param {} p
 */
export const deleteSafetyEducationItemInfo_Url = p => deletep('/quality/safety/safetyEducation/deleteSafetyEducationItemInfo', p);

/**
 * 更新教育培训从表接口
 * @param {} p
 */
export const updateSafetyEducationItemInfo_Url = p => put('/quality/safety/safetyEducation/updateSafetyEducationItemInfo', p);

/**
 * 新增专项活动接口
 * @param {} p
 */
export const addSafetySpecialInfo_Url = p => save('/quality/safety/safetySpecial/addSafetySpecialInfo', p);

/**
 * 删除专项活动接口
 * @param {} p
 */
export const deleteSafetySpecialInfo_Url = p => deletep('/quality/safety/safetySpecial/deleteSafetySpecialInfo', p);

/**
 * 更新专项活动接口
 * @param {} p
 */
export const updateSafetySpecialInfo_Url = p => put('/quality/safety/safetySpecial/updateSafetySpecialInfo', p);

/**
 * 新增专项活动子表接口
 * @param {} p
 */
export const addSafetySpecialItemInfo_Url = p => save('/quality/safety/safetySpecial/addSecurityManagementSpecialinfo', p);

/**
 * 删除专项活动子表接口
 * @param {} p
 */
export const deleteSafetySpecialItemInfo_Url = p => deletep('/quality/safety/safetySpecial/deleteSecurityManagementSpecialinfo', p);

/**
 * 更新专项活动子表接口
 * @param {} p
 */
export const updateSafetySpecialItemInfo_Url = p => put('/quality/safety/safetySpecial/updateSecurityManagementSpecialinfo', p);

/*
* 新增隐患治理
* */
export const addHiddenDangerControl_Url = p => save('/quality/safety/safetyTroubles/addSafetyTroublesInfo', p);

/*
* 修改隐患治理
* */
export const updateHiddenDangerControl_Url = p => put('/quality/safety/safetyTroubles/updateSafetyTroublesInfo', p);

/*
* 删除隐患治理
* */
export const deleteHiddenDangerControl_Url = p => deletep('/quality/safety/safetyTroubles/deleteSafetyTroublesInfo', p);

/*
* 新增特种设备管理
* */
export const addSpecialEquipmentManage_Url = p => save('/quality/safety/safetyEquipment/addSafetyEquipmentInfo', p);

/*
* 修改特种设备管理
* */
export const updateSpecialEquipmentManage_Url = p => put('/quality/safety/safetyEquipment/updateSafetyEquipmentInfo', p);

/*
* 删除特种设备管理
* */
export const deleteSpecialEquipmentManage_Url = p => deletep('/quality/safety/safetyEquipment/deleteSafetyEquipmentInfo', p);

/*
* 新增安全措施
* */
export const addSafetyMeasureInfo_Url = p => save('/quality/safety/safetyMeasure/addSafetyMeasureInfo', p);

/*
* 删除安全措施
* */
export const deleteSafetyMeasureInfo_Url = p => deletep('/quality/safety/safetyMeasure/deleteSafetyMeasureInfo', p);

/*
* 修改安全措施
* */
export const updateSafetyMeasureInfo_Url = p => put('/quality/safety/safetyMeasure/updateSafetyMeasureInfo', p);


/**
 * 事故管理接口 更新
 *
 * @param p
 * @returns {*|Promise<unknown>}
 */
export const updateSafetyFaultInfo = p => put('/quality/safety/safetyFault/updateSafetyFaultInfo', p);

/**
 * 事故管理接口 删除
 *
 * @param p
 * @returns {*|Promise<unknown>}
 */
export const deleteSafetyFaultInfo = p => deletep('/quality/safety/safetyFault/deleteSafetyFaultInfo', p);

/**
 * 事故管理 增加
 *
 * @param p
 * @returns {*|Promise<unknown>}
 */
export const addSafetyFaultInfo = p => save('/quality/safety/safetyFault/addSafetyFaultInfo', p);


/*
* 新增安全奖惩
* */
export const addSafeRewardAndPunish_Url = p => save('/quality/safety/safetyAwardpunish/addSafetyAwardpunishInfo', p);

/*
* 修改安全奖惩
* */
export const updateSafeRewardAndPunish_Url = p => put('/quality/safety/safetyAwardpunish/updateSafetyAwardpunishInfo', p);

/*
* 删除安全奖惩
* */
export const deleteSafeRewardAndPunish_Url = p => deletep('/quality/safety/safetyAwardpunish/deleteSafetyAwardpunishInfo', p);

/*
* 新增安全风险管控
* */
export const addSafetyControlInfo_Url = p => save('/quality/safety/safetyControl/addSafetyControlInfo', p);

/*
* 修改安全风险管控
* */
export const updateSafetyControlInfo_Url = p => put('/quality/safety/safetyControl/updateSafetyControlInfo', p);

/*
* 删除安全风险管控
* */
export const deleteSafetyControlInfo_Url = p => deletep('/quality/safety/safetyControl/deleteSafetyControlInfo', p);

/**
 * 管理创新删除操作
 *
 * @param p
 * @returns {*|Promise|Promise<unknown>}
 */
export const deleteSatetyInnovateInfo = p => deletep('/quality/safety/safetyInnovate/deleteSatetyInnovateInfo', p);

/**
 * 管理创新增加操作
 *
 * @param p
 * @returns {*|Promise|Promise<unknown>}
 */
export const addSatetyInnovateInfo = p => save('/quality/safety/safetyInnovate/addSatetyInnovateInfo', p);

/**
 * 管理创新修改操作
 *
 * @param p
 * @returns {*|Promise|Promise<unknown>}
 */
export const updateSatetyInnovateInfo = p => put('/quality/safety/safetyInnovate/updateSatetyInnovateInfo', p);

/*
* 新增防汛防地灾管理
* */
export const addPreventionlInfo_Url = p => save('/quality/safety/safetyDisasterPrevent/addSafetyDisasterPreventionInfo', p);

/*
* 修改防汛防地灾管理
* */
export const updatePreventionlInfo_Url = p => put('/quality/safety/safetyDisasterPrevent/updateSafetyDisasterPreventionInfo', p);

/*
* 删除防汛防地灾管理
* */
export const deletePreventionlInfo_Url = p => deletep('/quality/safety/safetyDisasterPrevent/deleteSafetyDisasterPreventionInfo', p);

/**
 * 应急管理 增加
 *
 * @param p
 * @returns {*|Promise<unknown>}
 */
export const addSafetyContingencyInfo = p => save('/quality/safety/safetyContingency/addSafetyContingencyInfo', p);

/**
 * 应急管理 删除
 *
 * @param p
 * @returns {*|Promise<unknown>}
 */
export const deleteSafetyContingencyInfo = p => deletep('/quality/safety/safetyContingency/deleteSafetyContingencyInfo', p);

/**
 * 应急管理 更新
 *
 * @param p
 * @returns {*|Promise<unknown>}
 */
export const updateSafetyContingencyInfo = p => put('/quality/safety/safetyContingency/updateSafetyContingencyInfo', p);

/**
 * 安全目标 - 保障措施 增加
 *
 * @param p
 * @returns {*|Promise<unknown>}
 */
export const addSecurityManagementSafetyNodeMeasuresInfo = p => save('/quality/safety/safetyAim/addSecurityManagementSafetyNodeMeasuresInfo', p);

/**
 * 安全目标 - 保障措施 修改
 *
 * @param p
 * @returns {*|Promise<unknown>}
 */
export const updateSecurityManagementSafetyNodeMeasuresInfo = p => put('/quality/safety/safetyAim/updateSecurityManagementSafetyNodeMeasuresInfo', p);

/**
 * 安全目标 - 保障措施 删除
 *
 * @param p
 * @returns {*|Promise<unknown>}
 */
export const deleteSecurityManagementSafetyNodeMeasuresInfo = p => deletep('/quality/safety/safetyAim/deleteSecurityManagementSafetyNodeMeasuresInfo', p);

/**
 * 安全目标 - 目标评定 增加
 *
 * @param p
 * @returns {*|Promise<unknown>}
 */
export const addSecurityManagementSafetyNodeTargetTestifyInfo = p => save('/quality/safety/safetyAim/addSecurityManagementSafetyNodeTargetTestifyInfo', p);

/**
 * 安全目标 - 目标评定 修改
 *
 * @param p
 * @returns {*|Promise<unknown>}
 */
export const updateSecurityManagementSafetyNodeTargetTestifyInfo = p => put('/quality/safety/safetyAim/updateSecurityManagementSafetyNodeTargetTestifyInfo', p);

/**
 * 安全目标 - 目标评定 删除
 *
 * @param p
 * @returns {*|Promise<unknown>}
 */
export const deleteSecurityManagementSafetyNodeTargetTestifyInfo = p => deletep('/quality/safety/safetyAim/deleteSecurityManagementSafetyNodeTargetTestifyInfo', p);

/**
 * 风险管控从表- 风险跟踪 增加
 *
 * @param p
 * @returns {*|Promise<unknown>}
 */
export const insertRiskTail = p => save('/quality/safety/safetyControl/insertRiskTail', p);

/**
 * 风险管控从表- 风险跟踪 修改
 *
 * @param p
 * @returns {*|Promise<unknown>}
 */
export const updateRiskTail = p => put('/quality/safety/safetyControl/updateRiskTail', p);

/**
 * 风险管控从表- 风险跟踪 删除
 *
 * @param p
 * @returns {*|Promise<unknown>}
 */
export const delRiskTail = p => deletep('/quality/safety/safetyControl/delRiskTail', p);

/**
 * 危险管理 新增
 *
 * @param p
 * @returns {Promise | Promise<unknown>}
 */
export const insertHazard = p => save('/quality/safety/hazard/insertHazard', p);

/**
 * 危险管理 修改
 *
 * @param p
 * @returns {Promise | Promise<unknown>}
 */
export const updateHazard = p => put('/quality/safety/hazard/updateHazard', p);

/**
 * 危险管理 删除
 * @param p
 * @returns {Promise | Promise<unknown>}
 */
export const delHazard = p => deletep('/quality/safety/hazard/delHazard', p);

/**
 * 危险管理从表 新增
 * @param p
 * @returns {Promise | Promise<unknown>}
 */
export const insertHazardTestify = p => save('/quality/safety/hazard/insertHazardTestify', p);


/**
 * 危险管理从表 修改
 * @param p
 * @returns {Promise | Promise<unknown>}
 */
export const updateHazardTestify = p => put('/quality/safety/hazard/updateHazardTestify', p);

/**
 * 危险管理从表 删除
 * @param p
 * @returns {Promise | Promise<unknown>}
 */
export const delHazardTestify = p => deletep('/quality/safety/hazard/delHazardTestify', p);

/**
 * 隐患排查 新增
 * @param p
 * @returns {Promise | Promise<unknown>}
 */
export const insertAccountUrl = p => save('/quality/safety/account/insertAccount', p);


/**
 * 隐患排查 修改
 * @param p
 * @returns {Promise | Promise<unknown>}
 */
export const updateAccountUrl = p => put('/quality/safety/account/updateAccount', p);

/**
 * 隐患排查 删除
 * @param p
 * @returns {Promise | Promise<unknown>}
 */
export const delAccountUrl = p => deletep('/quality/safety/account/delAccount', p);

/**
 * 应急物资 新增
 * @param p
 * @returns {Promise | Promise<unknown>}
 */
export const addSecurityManagementContingencySuppliesInfo = p => save('/quality/safety/safetyContingency/addSecurityManagementContingencySuppliesInfo', p);


/**
 * 应急物资 修改
 * @param p
 * @returns {Promise | Promise<unknown>}
 */
export const updateSecurityManagementContingencySuppliesInfo = p => put('/quality/safety/safetyContingency/updateSecurityManagementContingencySuppliesInfo', p);

/**
 * 应急物资 删除
 * @param p
 * @returns {Promise | Promise<unknown>}
 */
export const deleteSecurityManagementContingencySuppliesInfo = p => deletep('/quality/safety/safetyContingency/deleteSecurityManagementContingencySuppliesInfo', p);


/*----------------------------------分割线---2020-06-18-------------------------------*/

/**
 * 危化品 新增
 * @param p
 * @returns {Promise | Promise<unknown>}
 */
export const insertChemicals = p => save('/quality/safety/chemicals/insertChemicals', p);


/**
 * 危化品 修改
 * @param p
 * @returns {Promise | Promise<unknown>}
 */
export const updateChemicals = p => put('/quality/safety/chemicals/updateChemicals', p);


/**
 * 危化品 删除
 * @param p
 * @returns {Promise | Promise<unknown>}
 */
export const delChemicals = p => deletep('/quality/safety/chemicals/delChemicals', p);

/**
 * 危化品 从表 新增
 * @param p
 * @returns {Promise | Promise<unknown>}
 */
export const insertChemicalSlave = p => save('/quality/safety/chemicals/slave/insertChemicalSlave', p);

/**
 * 危化品 从表 修改
 * @param p
 * @returns {Promise | Promise<unknown>}
 */
export const updateChemicalSlave = p => put('/quality/safety/chemicals/slave/updateChemicalSlave', p);

/**
 * 危化品 从表 删除 （单个删除）
 * @param p
 * @returns {Promise | Promise<unknown>}
 */
export const delChemicalsSlaveNo = p => deletep('/quality/safety/chemicals/slave/delChemicalsSlaveNo', p);

/**
 * 危化品信息 从表 新增
 * @param p
 * @returns {Promise | Promise<unknown>}
 */
export const insertChemicalsInfo = p => save('/quality/safety/chemicals/info/insertChemicalsInfo', p);

/**
 * 危化品信息 从表 修改
 * @param p
 * @returns {Promise | Promise<unknown>}
 */
export const updateChemicalsInfo = p => put('/quality/safety/chemicals/info/updateChemicalsInfo', p);

/**
 * 危化品信息 从表 删除 （单个删除）
 * @param p
 * @returns {Promise | Promise<unknown>}
 */
export const delChemicalsInfo = p => deletep('/quality/safety/chemicals/info/delChemicalsInfo', p);

